home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / misc / bsl.sty < prev    next >
Text File  |  1993-04-01  |  5KB  |  98 lines

  1. % Save file as: BSL.STY                Source: FILESERV@SHSU.BITNET  
  2. % Provide access to the boldface slanted type style for LaTeX.  Once you
  3. % have included "bsl" as a style option, you can use the \bsl command to
  4. % select the boldface slanted style, just as you would select the usual
  5. % boldface Roman style with \bf, EXCEPT:
  6. %
  7. %    The various fonts defined here are all "loaded on demand".  As
  8. %    discussed in the LaTeX book, Section C.14.4, a loaded on demand
  9. %    font is subject to two restrictions when used in math mode:
  10. %
  11. %    - The font must be used OUTSIDE of math mode before it is used
  12. %      INSIDE of math mode.  The \load command can be used to get
  13. %      around this restriction.
  14. %
  15. %    - Only a single font size is available within math mode - the
  16. %      display, text, script and scriptscriptfonts will all be the
  17. %      same.  This can be avoided ONLY by changing the definitions
  18. %      given here to pre-load the appropriate fonts; see LFONTS.TEX
  19. %      for further information.  (Alternatively, \@getfont could be
  20. %      made more clever.)  Note that pre-loading the fonts could cause
  21. %      you to fill font space with fonts you never really use.
  22. %
  23. % In order to allow other style files that need access to \bsl to input this
  24. % file safely, it is designed so that an attempt to input it a second time -
  25. % or, more exactly, when command "\bsl" is already defined - is ignored.
  26. %
  27. % This file can be adapted easily to define other font type styles.  The real
  28. % limit is likely to come from the requirement that each style so defined must
  29. % be given a unique family number - TeX only supports 16 families and LaTeX
  30. % as usually configured already uses 10.  The right way to avoid this problem
  31. % is to modify \@getfont so that it ignores a family number of -1.  Fonts
  32. % so specified would not be usable in math mode, but that's no big deal; you
  33. % don't WANT to use tons of non-math fonts in math mode anyway.
  34. %
  35. % As currently written, this file assumes that you have boldface san serif
  36. % fonts available at the following point sizes:
  37. %
  38. %    cmbxsl10 at 9pt
  39. %    cmbxsl10
  40. %    cmbxsl10 at 11pt
  41. %    cmbxsl10 at 12pt
  42. %    cmbxsl10 at 14pt
  43. %    cmbxsl10 at 17pt
  44. %    cmbxsl10 at 20pt
  45. %    cmbxsl10 at 25pt
  46. %
  47. % All but the last of these should be commonly available.  I'm not sure about
  48. % the last one; LFONTS.TEX does not assume the availability of ANY 25 pt fonts
  49. % other than Roman.  If necessary, change the definition of \bslxxv@ to
  50. % \@subfont\bsl\rm.  (Alternatively, if you have boldface slanted fonts
  51. % at sizes smaller than 8pt, you might want to change the definitions of
  52. % \bslv@, \bslvi@, and \bslvii@.)
  53. %
  54. % Technical note:  It is possible to do without the \bsl<size>@ macros by
  55. % including their contents, with a whole bunch of \@prtct's, within the
  56. % \@addfontinfo definitions.  This is a pain to do, and probably doesn't end
  57. % up saving any space anyway.  This way costs you a bunch of extra macros,
  58. % but it's a LOT easier to understand!
  59. %
  60. % Written by GEorge D. Greenwade (BED_GDG@SHSU.BITNET)
  61. %     as a variation from BSF.STY written by Jerry Leichter
  62. %     (LEICHTER-JERRY@CS.YALE.EDU)
  63. % April 5, 1990
  64.  
  65. \expandafter\ifx\csname bsl\endcsname\relax        %Once only, please
  66. % Note:  It's a pain to use \@ifundefined here - we don't want to pass the
  67. % rest of the definitions as an argument, but we can't easily use \endinput
  68. % since, with docsty, we can't control where the line breaks occur.
  69.  
  70. \typeout{Document Option 'bsl' for Bold Slanted Fonts -- April 5, 1990 -- GDG}
  71. \def\bsl{\protect\pbsl}
  72. \newfam\bslfam
  73. \@addfontinfo\@vpt{\@prtct\bslv@}
  74.   \def\bslv@{\def\pbsl{\@subfont\bsl\bf}}
  75. \@addfontinfo\@vipt{\@prtct\bslvi@}
  76.   \def\bslvi@{\def\pbsl{\@subfont\bsl\bf}}
  77. \@addfontinfo\@viipt{\@prtct\bslvii@}
  78.   \def\bslvii@{\def\pbsl{\@subfont\bsl\bf}}
  79. \@addfontinfo\@viiipt{\@prtct\bslviii@}
  80.   \def\bslviii@{\def\pbsl{\@subfont\bsl\bf}}
  81. \@addfontinfo\@ixpt{\@prtct\bslx@}
  82.   \def\bslx@{\def\pbsl{\@getfont\pbsl\bslfam\@ixpt{cmbxsl10\@halfmag}}}
  83. \@addfontinfo\@xpt{\@prtct\bslx@}
  84.   \def\bslx@{\def\pbsl{\@getfont\pbsl\bslfam\@xpt{cmbxsl10}}}
  85. \@addfontinfo\@xipt{\@prtct\bslxi@}
  86.   \def\bslxi@{\def\pbsl{\@getfont\pbsl\bslfam\@xipt{cmbxsl10\@halfmag}}}
  87. \@addfontinfo\@xiipt{\@prtct\bslxii@}
  88.   \def\bslxii@{\def\pbsl{\@getfont\pbsl\bslfam\@xiipt{cmbxsl10\@magscale1}}}
  89. \@addfontinfo\@xivpt{\@prtct\bslxiv@}
  90.   \def\bslxiv@{\def\pbsl{\@getfont\pbsl\bslfam\@xivpt{cmbxsl10\@magscale2}}}
  91. \@addfontinfo\@xviipt{\@prtct\bslxvii@}
  92.   \def\bslxvii@{\def\pbsl{\@getfont\pbsl\bslfam\@xviipt{cmbxsl10\@magscale3}}}
  93. \@addfontinfo\@xxpt{\@prtct\bslxx@}
  94.   \def\bslxx@{\def\pbsl{\@getfont\pbsl\bslfam\@xxpt{cmbxsl10\@magscale4}}}
  95. \@addfontinfo\@xxvpt{\@prtct\bslxxv@}
  96.   \def\bslxxv@{\def\pbsl{\@getfont\pbsl\bslfam\@xxvpt{cmbxsl10\@magscale5}}}
  97. \fi
  98.